<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateIntegratesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('integrates', function (Blueprint $table) {
            $table->increments('id');
            $table->string('type')->default('')->comment('类型');
            $table->string('amount')->default('')->comment('金额');
            $table->string('user_id')->default('')->comment('用户');
            $table->integer('status')->default('0')->comment('状态');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('integrates');
    }
}
